package cn.idietrade.idietradegoodsmodule8002.service.goodsservice;

import cn.idietrade.common.pojo.SecondGoods;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zjy
 * @version 1.0
 * @createTime 2022-11-30 17:39
 * @description
 */

public interface SecondGoodsService {
    //商品发布
    int goodsRelease(String imgids,SecondGoods secondGoods);

    //查询关注用户的商品
    PageInfo<SecondGoods> queryConcerUserIdGoods(Integer pageNum, Integer pageSize,Integer userId);

    //查询所用商品 用来保存到ES中
    List<SecondGoods> queryGoodsAll(String keyword,Integer cityId);

    //查询最大id
    int queryMaxId();

    //通过商品id查询商品信息
    SecondGoods queryOneGoods(Integer goodsId);
}
